import module from '../../module'

export default name => {
    const root = `${module.code}/${name}/`
    const crud = $http.crud(root)
    // 查询客票信息
    crud.getorderinfo = params => {
        return $http.get('/dispatch/common/getorderinfo', params)
    }
    //获取票种
    crud.ticketTypeQuery = params => {
        return $http.get('/baseinfo/ticket_type/query', params)
    }
    return {
        ...crud
    }
}
